import request from "@/utils/request";

export function getSettlements(params) {
  return request({
    url: "api/v1/settlements",
    method: "get",
    params: params,
    authServer: false,
  });
}

export function closePeriod(period) {
  return request({
    url: "api/v1/settlements/close/" + period,
    method: "post",
    authServer: false,
  });
}

export function openPeriod(period) {
  return request({
    url: "api/v1/settlements/open/" + period,
    method: "post",
    authServer: false,
  });
}
